<?php if (!defined('THINK_PATH')) exit();?><div class="row">

    <div class="col-sm-12">

        <div class="well well-light">

            <div class="row">
                
                <?php if(is_array($data)): $i = 0; $__LIST__ = $data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?><div class="col-xs-12 col-sm-6 col-md-3">
                    <div class="panel panel-success pricing-big">

                        <div class="panel-heading">
                            <h3 class="panel-title">
                                <?php echo ($v["name"]); ?></h3>
                        </div>
                        <div class="panel-body no-padding text-align-center">
                            <div class="the-price">
                                <h1>
                                    <strong>
                                        <?php switch($v["type"]): case "1": ?>免费报名<?php break; case "2": ?>收费报名【<?php echo ($v["pay_num"]); ?>元】<?php break; endswitch;?>
                                    </strong>
                                </h1>
                            </div>
                            <div class="price-features">
                                <ul class="list-unstyled text-left">
                                    <li>
                                        <i class="fa fa-calendar-o text-success"></i>
                                        报名截止时间<br/><strong><?php echo (date('Y/m/d H:i',$v["end_time"])); ?></strong>
                                    </li>
                                    <li><i class="fa fa-clock-o text-success"></i>
                                        剩余时间<br/><strong><?php echo ($v["deadline"]["day"]); ?>天<?php echo ($v["deadline"]["hour"]); ?>时<?php echo ($v["deadline"]["min"]); ?>分<?php echo ($v["deadline"]["sec"]); ?>秒</strong>
                                    </li>
                                    <li><i class="fa fa-male text-success"></i>
                                        报名人数<br/><strong>
                                        <div class="progress" rel="tooltip" data-original-title="<?php echo ($v["submit_num"]); ?>/<?php echo ($v["people_num"]); ?>人" data-placement="top">
                                            <div class="progress-bar bg-color-teal" aria-valuetransitiongoal="<?php echo ($v['submit_num']/$v['people_num']*100); ?>"></div>
                                        </div>
                                        </strong>
                                    </li>
                                </ul>
                            </div>
                        </div>
                        <div class="panel-footer text-align-center">
                            <a href="javascript:void(0);" class="btn btn-primary btn-block" role="button">Download <span> now!</span></a>
                            <div>
                                Or <a href="javascript:void(0);">Sign up</a>
                            </div>
                        </div>
                    </div>
                </div><?php endforeach; endif; else: echo "" ;endif; ?>
		    	
            </div>


        </div>

    </div>

</div>


<script type="text/javascript">

    // DO NOT REMOVE : GLOBAL FUNCTIONS!
    pageSetUp();

    // PAGE RELATED SCRIPTS
    // load bootstrap-progress bar script
    loadScript("/exam/Public/static/smart_admin/js/plugin/bootstrap-progressbar/bootstrap-progressbar.js", progressBarAnimate);

    // Fill all progress bars with animation
    function progressBarAnimate() {
            $('.progress-bar').progressbar({
                    display_text : 'fill'
            });
    }    

</script>